package com.zmm.study.order.dao;

import com.zmm.study.order.model.MoNiOrder;
import com.zmm.study.order.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description:
 * @Name OrderDao
 * @Author Zebulon
 * @Date By 2021-07-21 23:05:37
 */
@Mapper
public interface OrderDao {

    /**
     * 新增订单 -- jdbc
     * @description:
     * @author: Zebulon
     * @date: 2021-07-21 23:07:52
     * @param order: 
     * @return: java.lang.Integer
     **/
    Integer insertOrder(Order order);

    /**
     * 根据订单号 查询订单状态
     * @author: 900045
     * @date: 2021-10-20 17:29:14
     * @throws 
     * @param orderNo: 
     * @return: java.lang.Integer
     **/
	Integer getOrderStatusByOrderNo(@Param("orderNo") String orderNo);

	/**
	 * 改变订单的状态
	 * @author: 900045
	 * @date: 2021-10-20 17:46:10
	 * @throws 
	 * @param status: 
	 * @param orderNo: 
	 * @return: void
	 **/
	void updateOrderByOrderNo(@Param("status") Integer status, @Param("orderNo") String orderNo);
	
	/**
	 * 新增模拟订单
	 * @author: 900045
	 * @date: 2021-10-21 09:28:34
	 * @throws 
	 * @param moNiOrder: 
	 * @return: java.lang.Integer
	 **/
	Integer insertMoNiOrder(MoNiOrder moNiOrder);
}
